package com.x.OrderInfo.controller;


import com.alibaba.fastjson.JSON;
import com.x.OrderInfo.entity.OrderInfo;
import com.x.OrderInfo.service.OrderInfoService;
import com.x.OrderInfo.service.OrderInfoServiceFeign;
import com.x.order.service.RemoteOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author x-cloud
 * @since 2021-07-29
 */
@RestController
@RequestMapping("/OrderInfo/order-info")
public class OrderInfoFeignController implements OrderInfoServiceFeign {

    @Autowired
    private OrderInfoService orderInfoService;


    @Override
    public String list() {
        return JSON.toJSON(orderInfoService.list()).toString();
    }
}
